﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CF.Web.Ext.Net.Default" %>
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>

<html>
<head id="Head1" runat="server">
    <title>项目数据库维护</title>

<style>
#header{background:#999 url(images/header-bg.gif) repeat-x scroll center center;height:45px;border:solid 1px #122A59;font-size:12px;}
.header-logo{float:left;width:30%;padding:10px 0 0 10px;}
.header-user{float:right;width:15%;line-height:45px;color:#fff;}
.header-user a{color:#fff;}
.header-notify{float:left;width:40%;padding-top:25px;}
.header-notify div{width:200px;background-color:#F93;text-align:center;font-size:12px;line-height:20px;}
.header-title{color:#FFF;line-height:45px;font-size:16px;font-weight:bold;padding-left:20px;}
.east-panel .x-layout-collapsed-east{margin-top:3px;background:url(images/collapsed-east.png) no-repeat center;}
div.item-wrap{float:left;border:1px solid transparent;margin:5px 25px 5px 25px;width:100px;cursor:pointer;height:120px;text-align:center;}
div.item-wrap img{margin:5px 0px 0px 5px;width:61px;height:77px;}
div.item-wrap h6{font-size:14px;color:#3A4B5B;font-family:tahoma,arial,san-serif;}
.items-view .x-view-over{border:solid 1px silver; }
#items-ct{padding:0px 30px 24px 30px; }
#items-ct h2{border-bottom:2px solid #3A4B5B;cursor:pointer;}
#items-ct h2 div{background:transparent url(resources/images/group-expand-sprite.gif) no-repeat 3px -47px;padding:4px 4px 4px 17px;font-family:tahoma,arial,san-serif;font-size:12px;color:#3A4B5B;}
#items-ct .collapsed h2 div{background-position:3px 3px; }
#items-ct dl{margin-left:2px; }
#items-ct .collapsed dl{display:none; }

.systeminfo th,td{font:normal 12px 宋体; }
.systeminfo a { color: #135294; text-decoration: none; }
.systeminfo a:hover { color: #ff6600; text-decoration: underline; }
.systeminfo td { height:22px; line-height:20px; background:#EEF7FD; font-size:12px; border:1px solid #fff; color:#16579c; padding:1px; }
.systeminfo .td_title,th {height:26px;line-height:26px;background:#fff;color:#1d62aa;font-weight:bold;border:1px solid #fff;padding-left:20px;text-align:left;}
.systeminfo TD.td1 { PADDING-RIGHT: 3px; PADDING-LEFT: 3px; BACKGROUND: #F1F3F5; PADDING-BOTTOM: 3px; PADDING-TOP: 3px; }
.systeminfo TD.td2 { PADDING-RIGHT: 3px; PADDING-LEFT: 3px; BACKGROUND: #E4EDF9; PADDING-BOTTOM: 3px; PADDING-TOP: 3px; }
</style>

     <script type="text/javascript">
         var selectionChanged = function (dv, nodes) {
             if (nodes.length > 0) {
                 llano.addTab({ tabPanel: TabPanel1, id: nodes[0].id + '_item', title: nodes[0].title, url: '/Ext.Net/' + nodes[0].id + '/Default.aspx' });
             }
         }
         var viewClick = function (dv, e) {
             var group = e.getTarget("h2", 3, true);

             if (group) { group.up("div").toggleClass("collapsed"); }
         }
    </script>
</head>
<body>
    <script type="text/javascript" src="llano.Base.js"></script>
    <ext:ResourceManager runat="server" Theme="Gray" />

    <ext:Store ID="Store1" runat="server">        
        <Reader>
            <ext:JsonReader>
                <Fields>
                    <ext:RecordField Name="Title" />
                    <ext:RecordField Name="Items" IsComplex="true" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>

    <ext:Viewport runat="server" Layout="border">
        <Items>
            <ext:Panel runat="server" Region="North" Height="45" BodyBorder="False">
                <Content>
                    <div id="header">
                        <div class="header-logo">
                            <a href="http://www.yj-star.com/" target="_blank"><img src="images/ext_net_badge.gif"></a>
                        </div>
                        <div class="header-user">
                            当前登录账户:<b>admin</b>
                            <a href="javascript:;">退出</a>
                        </div>
                    </div>
                </Content>
            </ext:Panel>
            <ext:Panel runat="server" Title="控制面板"  Region="West" Layout="accordion" Width="200" MaxWidth="400" Collapsible="true" Margins="3 1 5 5">
                <Items>
                    <ext:MenuPanel ID="MenuPanel1" Title="常用功能" runat="server">
                        <Menu ID="Menu1" runat="server">
                            <Items>
                                <ext:MenuItem ID="base_item" runat="server" Text="基本配置" Icon="Report">
                                    <CustomConfig>
                                        <ext:ConfigItem Name="url" Value="/Admin/pages/article/article_crud.aspx" Mode="Value" />
                                    </CustomConfig>
                                </ext:MenuItem>
                                    
                                <ext:MenuSeparator />
                                    
                                <ext:MenuItem ID="article_item" runat="server" Text="新闻管理" Icon="Report">
                                    <Menu>
                                        <ext:Menu ID="Menu2" runat="server">
                                            <Items>
                                                <ext:MenuItem ID="MenuItem1"  runat="server" Text="备份帐套" Icon="DatabaseSave">
                                                    <Listeners>
                                                        <Click Handler="JavaScript:window.open('#');" />
                                                    </Listeners>
                                                </ext:MenuItem>
                                                <ext:MenuItem ID="MenuItem2" runat="server" Text="恢复帐套" Icon="DatabaseGo">
                                                    <Listeners>
                                                        <Click Handler="JavaScript:window.open('#');" />
                                                    </Listeners>
                                                </ext:MenuItem>
                                            </Items>
                                        </ext:Menu>
                                    </Menu>
                                    <CustomConfig>
                                        <ext:ConfigItem Name="url" Value="/Ext.Net/article/Default.aspx" Mode="Value" />
                                    </CustomConfig>
                                </ext:MenuItem>
                                    
                                <ext:MenuSeparator />
                                    
                                <ext:MenuItem ID="job_item" runat="server" Text="职位管理" Icon="Report">
                                    <CustomConfig>
                                        <ext:ConfigItem Name="url" Value="/Ext.Net/job/Default.aspx" Mode="Value" />
                                    </CustomConfig>
                                </ext:MenuItem>

                                <ext:MenuSeparator />

                                <ext:MenuItem ID="user_item" runat="server" Text="用户管理" Icon="Report">
                                    <CustomConfig>
                                        <ext:ConfigItem Name="url" Value="/Ext.Net/User/Default.aspx" Mode="Value" />
                                    </CustomConfig>
                                </ext:MenuItem>
                            </Items>
                            <Listeners>
                                <ItemClick Handler="llano.addTab({ tabPanel: #{TabPanel1}, id: menuItem.id, title: menuItem.text,icon: menuItem.icon, url: menuItem.url, icon: menuItem.iconCls});" />
                            </Listeners>
                        </Menu>
                    </ext:MenuPanel>
                </Items>
            </ext:Panel>
            <ext:TabPanel ID="TabPanel1" runat="server" Region="Center" Margins="3 3 5 3">
                <Items>
                    <ext:Panel ID="DashBoardPanel" runat="server" Cls="items-view" Icon="ServerEdit" Title=" 欢迎 " Layout="fit" AutoHeight="true" Border="false">
                        <TopBar>
                            <ext:Toolbar runat="server" Flat="true">
                                <Items>
                                    <ext:ToolbarFill />
                        
                                    <ext:Button runat="server" Icon="BulletPlus" Text="展开所有">
                                        <Listeners>
                                            <Click Handler="#{Dashboard}.el.select('.group-header').removeClass('collapsed');" />
                                        </Listeners>
                                    </ext:Button>
                        
                                    <ext:Button runat="server" Icon="BulletMinus" Text="关闭所有">
                                            <Listeners>
                                            <Click Handler="#{Dashboard}.el.select('.group-header').addClass('collapsed');" />
                                        </Listeners>
                                    </ext:Button>
                        
                                    <ext:ToolbarSpacer runat="server" Width="30" />
                                </Items>
                            </ext:Toolbar>
                        </TopBar>
                        <Items>
                            <ext:Panel ID="SystemInfo" runat="server" Cls="items-view" Layout="fit" AutoHeight="true" Border="false" PaddingSummary="15 25">
                            <Content>
                                <table cellpadding="3" cellspacing="1" border="0" width="100%" align="center" class="systeminfo">
                                    <tr>
                                      <td height=25 class="td_title">本系统由 阳江示达科技有限公司 授权给 <font color="#FF0000">某公司</font> 使用，当前使用版本为 V1.0</td>
                                    </tr>
                                    <tr><td height=23 style="padding-left: 20px">
                                        系统信息：
                                        | 商品总数 <b>0</b> 分类总数:<b>0</b>
                                        | 新闻总数 <b>0</b> 分类总数:<b>0</b>
                                        | 订单信息 <b>0</b>

                                        | 留言总数 <b>0</b>
                                        | 友情连接 <b>0</b>

                                        | 会员数量 <b>0</b>
                                        | 广告图片 <b>0</b>
                                    </td></tr>
                                </table>
                            </Content>
                            </ext:Panel>
                            <ext:DataView ID="Dashboard" runat="server" StoreID="Store1" SingleSelect="true" OverClass="x-view-over" ItemSelector="div.item-wrap" AutoHeight="true" EmptyText="No items to display">
                                <Template runat="server">
                                    <Html>
							            <div id="items-ct">
								            <tpl for=".">
									            <div class="group-header">
										            <h2><div>{Title}</div></h2>
										            <dl>
											            <tpl for="Items">
												            <div id="{Id}" title="{Title}" class="item-wrap">
													            <img src="{Icon}"/>
													            <div>
														            <H6>{Title}</H6>                                                													            </div>
												            </div>
											            </tpl>
											            <div style="clear:left"></div>
										                </dl>
									            </div>
								            </tpl>
							            </div>
						            </Html>
                                </Template>
                                <Listeners>
                                    <SelectionChange Fn="selectionChanged" />
                                    <ContainerClick Fn="viewClick" />
                                </Listeners>
                            </ext:DataView>
                        </Items>
                    </ext:Panel>
                </Items>
            </ext:TabPanel>
            <ext:Panel runat="server" Title="其他信息" Region="East" Collapsible="true" Width="200" Layout="Fit" Margins="3 5 5 1" Collapsed="True" CtCls="east-panel">
                <Items>
                    <ext:TabPanel runat="server" ActiveTabIndex="1" TabPosition="Bottom" Border="false">
                        <Items>
                            <ext:Panel runat="server" Title="Tab 1" Border="false" Padding="6" Html="East Tab 1" />
                       		<ext:Panel runat="server" Title="Tab 2" Closable="true" Border="false" Padding="6" Html="East Tab 2" />
                        </Items>
                    </ext:TabPanel>
                </Items>
            </ext:Panel>
            <%--<ext:Panel runat="server" Title="South" Region="South" Collapsible="true" Height="40" Padding="6" Html="South" Header="False" />--%>
        </Items>
    </ext:Viewport>
</body>
</html>
